package cn.edu.scau.cmi.tancuier.composite.consistent;

import java.util.ArrayList;

public class ConsistentPerson extends ConsistentOrganization {

	public ConsistentPerson(String name) {
		super(name);
	}
	
	@Override
	public void addChild(ConsistentOrganization child) {
		throw new UnsupportedOperationException();
	}

	@Override
	public void deleteChild(ConsistentOrganization child) {
		throw new UnsupportedOperationException();
	}

	@Override
	public ArrayList<ConsistentOrganization> getChildren() {
		throw new UnsupportedOperationException();
	}

	@Override
	public void setChildren(ArrayList<ConsistentOrganization> children) {
		throw new UnsupportedOperationException();
	}

	@Override
	public String display(int depth) {
		StringBuilder s = new StringBuilder();
		s.append(" |--");
		for(int i =0; i < depth; i++) {
			s.insert(0, " |   ");
		}
		return s.toString();
	}
	
}
